#define _CRT_SECURE_NO_WARNINGS

#include"list.h"
int main() {
	LTNode* plist = NULL;
	plist = LTInit();
	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPrint(plist);
	LTPushFront(plist, 10);
	LTPushFront(plist, 20);
	LTPushFront(plist, 30);
	LTPushFront(plist, 40);
	LTPrint(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPrint(plist);
	/*LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPopFront(plist);
	LTPrint(plist);*/
	//LTPopFront(plist);
	//LTPopFront(plist);
	int ret = LTSize(plist);
	printf("%d\n", ret);
	//int n = 0;
	//scanf("%d", &n);
	//LTNode*pos=LTFind(plist, n);
	//LTInsert(pos, 100 * n);
	//LTPrint(plist);
	//LTErase(pos);
	LTPrint(plist);
	LTDestroy(plist);
	plist = NULL;
	return 0;
}